/*
 *
 *  * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 *
 *
 */
package com.iwindplus.flow.server.dal.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.iwindplus.base.domain.DbBaseDO;
import com.iwindplus.flow.domain.enums.FlowTaskPlayerTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 流程任务参与人表.
 *
 * @author zengdegui
 * @since 2021/7/8
 */
@Schema(description = "流程任务参与人实体对象")
@TableName(value = "`flow_task_player`")
@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class FlowTaskPlayerDO extends DbBaseDO {

    /**
     * 参与人名称.
     */
    @Schema(description = "参与人名称")
    private String playerName;

    /**
     * 任务参与人类型 （0：用户 1：角色）.
     */
    private FlowTaskPlayerTypeEnum type;

    /**
     * 排序号.
     */
    @Schema(description = "排序号")
    private Integer seq;

    /**
     * 参与人主键.
     */
    @Schema(description = "参与人主键")
    private String playerId;

    /**
     * 任务主键.
     */
    @Schema(description = "任务主键")
    private Long taskId;

    /**
     * 实例主键.
     */
    @Schema(description = "实例主键")
    private Long instanceId;

    /**
     * 模型主键.
     */
    @Schema(description = "模型主键")
    private Long modelId;
}
